package com.homework.demo2;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/21 19:33
 * @description
 */
public class Produtor {
    private String pname;
    private double price;
    private int quantity;
    private String place;

    public Produtor(String pname, double price, int quantity, String place) {
        this.pname = pname;
        this.price = price;
        this.quantity = quantity;
        this.place = place;
    }

    public Produtor() {
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    @Override
    public String toString() {
        return "Produtor{" +
                "pname='" + pname + '\'' +
                ", price='" + price + '\'' +
                ", quantity='" + quantity + '\'' +
                ", place='" + place + '\'' +
                '}';
    }
}
